package action.plan;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import persistence.model.TdfkfaBasicScxmgk;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class AddPlanTempSLScxmgkAction extends ActionSupport implements SessionAware {

    private static final long serialVersionUID = 1L;

    private Map<String, Object> session;

    private TdfkfaBasicScxmgk tdfkfaBasicScxmgk;

    private String tempSaveStatus;

    public String save() throws Exception {

        session.put("TempStore_tdfkfaBasicScxmgk", tdfkfaBasicScxmgk);
        tempSaveStatus = "success";
        return Action.SUCCESS;
    }

    public String load() throws Exception {

        tdfkfaBasicScxmgk = (TdfkfaBasicScxmgk) session.get("TempStore_tdfkfaBasicScxmgk");
        return Action.SUCCESS;
    }

    public TdfkfaBasicScxmgk getTdfkfaBasicScxmgk() {
        return tdfkfaBasicScxmgk;
    }

    public void setTdfkfaBasicScxmgk(TdfkfaBasicScxmgk tdfkfaBasicScxmgk) {
        this.tdfkfaBasicScxmgk = tdfkfaBasicScxmgk;
    }

    public String getTempSaveStatus() {
        return tempSaveStatus;
    }

    public void setTempSaveStatus(String tempSaveStatus) {
        this.tempSaveStatus = tempSaveStatus;
    }

    public void setSession(Map<String, Object> session) {
        this.session = session;
    }

}
